﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Lib
{
    public class TextBoxUtil
    {
        public static bool valueIsNotNull(TextBox tbx,String title)
        {
            if (!StringUtil.isNotEmpty(tbx.Text))
            {
                CommonUtil.showMessageBox("请输入"+title);
                tbx.Focus();
                return false;
            }
            return true;
        }

        public static bool valueIsNotNull(TextBox tbx)
        {
            if (!StringUtil.isNotEmpty(tbx.Text))
            {
                tbx.Focus();
                return false;
            }
            return true;
        }
    }
}
